[IT] Admin feature

Wednesday, 31 March 2021 13:41:47
Total Iterations

1

Total Assertions

7

Total Failed Tests

7

Total Skipped Tests

0


File Information
Collection: [IT] Admin feature
Environment: Nightlies
Collection Description
``` Feature: Basic admin's features Scenario: Create a user by email/password with valid admin token When I create a user with a valid admin token Then I should get status 200 Scenario: Create a user by email/password with invalid admin token When I create a user with an invalid admin token Then I should get status 403 ```
Timings and Data
Total run duration: 1269ms
Total data received: 1.38KB
Average response time: 212ms
Summary Item Total Failed
Requests 5 0
Prerequest Scripts 7 0
Test Scripts 10 0
Assertions 7 7
Skipped Tests 0 -



Showing 7 Failures

Failed Test: Connect endpoint should return 200 when login with valid admin

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return access_token and refresh_token

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
Failed Test: Admin user can create a new user

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return 200 when login with created user

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return access_token and refresh_token for a user

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
Failed Test: User creation returns 403 when using invalid admin token

Assertion Error Message
expected response to have status code 403 but got 503
Failed Test: Error code should be invalid_token

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^


There are no skipped tests



1 Iteration available to view
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 1050ms
Mean size per request: 283B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 25e22ac8-295d-4ebe-a375-e372aacd6e0d
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"admin@whoozer.fr","password":"wh00zerp0w3r","scope":"mobile_app admin_scopes"}
Response Headers
Header NameHeader Value
Date Wed, 31 Mar 2021 13:41:47 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 131814</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with valid admin 0 1 0
Connect endpoint should return access_token and refresh_token 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
Connect endpoint should return 200 when login with valid admin
expected response to have status code 200 but got 503
Connect endpoint should return access_token and refresh_token
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 4ms
Mean size per request: 283B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth=""
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 0c2e9550-ccca-4440-b4e8-b74813a439d1
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1617198107224@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Wed, 31 Mar 2021 13:41:47 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 131816</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Admin user can create a new user 0 1 0
Total 0 1 0
Test Failure
Test NameAssertion Error
Admin user can create a new user
expected response to have status code 200 but got 503
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 3ms
Mean size per request: 280B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 08e9feb5-c276-407e-a7ee-2d502ca82fe0
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"main.user_1617198107224@example.com","password":"00000000","scope":"mobile_app"}
Response Headers
Header NameHeader Value
Date Wed, 31 Mar 2021 13:41:47 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 280
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 759</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with created user 0 1 0
Connect endpoint should return access_token and refresh_token for a user 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
Connect endpoint should return 200 when login with created user
expected response to have status code 200 but got 503
Connect endpoint should return access_token and refresh_token for a user
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^
Request Information
Request Method: DELETE
Request URL: http://varnish/api/users/%7B%7BuserAId%7D%7D?to_delete=true
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 3ms
Mean size per request: 283B

Test Pass Percentage
No Tests for this request
Request Headers
Header NameHeader Value
Host varnish
CF-IPCountry FR
Cookie
Authorization OAuth=""
User-Agent PostmanRuntime/7.26.8
Accept */*
Cache-Control no-cache
Postman-Token 38ede55c-9bed-47c6-b897-3bd553189777
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Date Wed, 31 Mar 2021 13:41:47 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 131818</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
No Tests for this request
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 3ms
Mean size per request: 280B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth="invalidToken"
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 08e9ea86-5be1-4491-9596-ca3b4916dcc7
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1617198107344@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Wed, 31 Mar 2021 13:41:47 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 280
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 761</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
User creation returns 403 when using invalid admin token 0 1 0
Error code should be invalid_token 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
User creation returns 403 when using invalid admin token
expected response to have status code 403 but got 503
Error code should be invalid_token
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^